<!DOCTYPE html>
<html ng-app=authapp>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>江苏省师范类专业认证系统管理主页</title>
    <meta name="keywords" content="江苏省师范类专业认证系统管理主页">
    <meta name="description" content="江苏省教育评估院,师范类专业,认证系统,管理主页">

	<link rel="stylesheet" href="../../plugin/bootstrap/bootstrap.min.css" />
	<link rel="stylesheet" href="../../basic/style/base.css" />
	<link rel="stylesheet" href="../../models/admin/css/home.css"/>
	<link rel="stylesheet" href="../../models/admin/css/auth_step.css"/>
	<link rel="stylesheet" href="../../models/admin/css/material_experts_list.css"/>
    <script src="../../plugin/angular/angular.min.js"></script>
    <script src="../../models/admin/js/material_experts_list.js"></script>
    <script src="../../plugin/bootstrap/ui-bootstrap-tpls.js"></script>
    <script src="../../plugin/angular/angular-cookies.min.js"></script>
    <script src="../../plugin/angular/ng-file-upload.min.js"></script>
    <script src="../../basic/js/source.js"></script>
    <script src="../../basic/javascript/funcs.js"></script>
    <script src="../../basic/js/directive.js"></script>
    <style>
    	.Btn{font-size:12px;padding:4px 0;width:72px;}
    </style>
</head>

<body>
	<div authheader></div>
	<div class="main-content" ng-controller="fcontroller">
		<div leftaside></div>
		<aside>
			<div class="top-bar"><a href="material_manage.html">材料评审管理</a>  > 添加专家</div>
			<section class="row">
				<div ng-controller="materialExpertsListCon">
					<div class="whole-cover" ng-hide="isAddM"></div>
					<div class="add-form" ng-hide="isAddM">
						<div ng-hide="isAddzy" class="addtitle">添加组员</div>
						<div ng-hide="isAddTit" class="addtitle">绑定机构</div>
						<div ng-hide="isName" class="addtitle">绑定一级指标</div>
						<div ng-hide="isName" style="margin-left:10px;">
							<span style="line-height:36px; margin-bottom:5px;">选择需要绑定的机构：</span>
							<select placeholder="" ng-change="getItemList()" style="padding-left:3px;" ng-model="schoolList.schoolId">
								<option value="">请选择需要绑定的机构</option>
								<option value="{{arraylist.schoolId}}" ng-repeat="arraylist in schoolList">{{arraylist.schoolname}}</option>
							</select>
						</div>
						<ul ng-hide="isAddzy">	
							<li ng-repeat="arraylist in expertList" ><input id={{arraylist.pid}} ng-model="Selected" type="checkbox" ng-true-value="true" ng-false-value="false" ng-click="check(arraylist.pid,Selected)"><span>{{arraylist.expertname}}</span></li>
						</ul>
						<ul ng-hide="isAddTit">	
							<li ng-repeat="arraylist in MaterialList" ng-if="arraylist.flag=='0'" >
								<input id={{arraylist.pid}} ng-model="Selected" type="checkbox" ng-true-value="true" ng-false-value="false" ng-click="check(arraylist.pid,Selected)">
								<span>{{arraylist.schoolName}}</span>
							</li>
							<li ng-repeat="arraylist in MaterialList" ng-if="arraylist.flag=='1'" >
								<input ng-checked="isChecked==Checked" id={{arraylist.pid}} ng-model="Selected" type="checkbox" ng-true-value="true" ng-false-value="false" ng-click="check(arraylist.pid,Selected)">
								<span>{{arraylist.schoolName}}</span
							></li>							
						</ul>
						<ul ng-hide="isName">
							<li style="padding-left:0">请选择绑定的一级指标</li>
							<li ng-repeat="arraylist in itemList" ng-if="arraylist.flag=='0'">
								<input id={{arraylist.pid}} ng-model="Selected" type="checkbox" ng-true-value="true" ng-false-value="false" ng-click="check(arraylist.pid,Selected)">
								<span>{{arraylist.content}}</span>
							</li>
							<li ng-repeat="arraylist in itemList" ng-if="arraylist.flag=='1'">
								<input ng-checked="isChecked==Checked" id={{arraylist.pid}} ng-model="Selected" type="checkbox" ng-true-value="true" ng-false-value="false" ng-click="check(arraylist.pid,Selected)">
								<span>{{arraylist.content}}</span>
							</li>

						</ul>
						<div>
							<div ng-hide="isAddzy" ng-click="addAuthExperts()">确认</div>
							<div ng-hide="isAddTit" ng-click="addAuthMaterial()">确认</div>
							<div ng-hide="isName" ng-click="addExpertItem()">确认</div>
							<div ng-click="cancelAddM()">取消</div>
						</div>
					</div>
					<div class="">
					</div>
					
					<div class="top-check clearfix">
						<div class="fl btn-add btn ml15" ng-click="turnTo()">返回</div>
						<div class="fr btn-add btn mr15" ng-click="addM()">添加组员</div>
					</div>
					<div class="list-content">
						<div class="cooleList title">
							<div class="detail-part">
								<ul>
									<li>专家编号</li>
									<li>专家名字</li>
									<li>身份</li>
								</ul>
							</div>
							<div class="detail-bot stateSet">权限设置</div>
							<div class="detail-bot">操作</div>
						</div>
						<div ng-repeat="arraylist in list" class="cooleList">
							<div class="detail-part">
								<ul>
									<li ng-bind="arraylist.expertCode?arraylist.expertCode:'-'" title="{{arraylist.expertCode}}">专家编号</li>
									<li ng-bind="arraylist.expertName?arraylist.expertName:'-'" title="{{arraylist.expertName}}">专家名字</li>
									<li ng-bind="arraylist.identitysName?arraylist.identitysName:'-'" title="{{arraylist.identitysName}}">身份</li>									
								</ul>
							</div>
							<div class="detail-bot stateSet" ng-if="arraylist.identitys=='0'">
								<span class="btn btn-query Btn" ng-click="setAuthExport(arraylist.pid,2)">设为组长</span>
								<span class="btn btn-query Btn" ng-click="setAuthExport(arraylist.pid,1)">设为副组长</span>
								<span class="btn btn-query Btn" ng-click="setAuthExport(arraylist.pid,3)">设为联络员</span>
							</div>
							<div class="detail-bot stateSet" ng-if="arraylist.identitys=='1'">
								<span class="btn btn-query Btn" ng-click="setAuthExport(arraylist.pid,0)">设为组员</span>
								<span class="btn btn-query Btn" ng-click="setAuthExport(arraylist.pid,2)">设为组长</span>
								<span class="btn btn-query Btn" ng-click="setAuthExport(arraylist.pid,3)">设为联络员</span>
							</div>
							<div class="detail-bot stateSet" ng-if="arraylist.identitys=='2'">
								<span class="btn btn-query Btn" ng-click="setAuthExport(arraylist.pid,0)">设为组员</span>
								<span class="btn btn-query Btn" ng-click="setAuthExport(arraylist.pid,1)">设为副组长</span>
								<span class="btn btn-query Btn" ng-click="setAuthExport(arraylist.pid,3)">设为联络员</span>
							</div>
							<div class="detail-bot stateSet" ng-if="arraylist.identitys=='3'">
								<span class="btn btn-query Btn" ng-click="setAuthExport(arraylist.pid,0)">设为组员</span>
								<span class="btn btn-query Btn" ng-click="setAuthExport(arraylist.pid,2)">设为组长</span>
								<span class="btn btn-query Btn" ng-click="setAuthExport(arraylist.pid,1)">设为副组长</span>
							</div>
							<div class="detail-bot">
								<span class="action" style="color:#169BD5;cursor:pointer;" ng-click="getMaterialList(arraylist.exportId)">绑定机构</span>
								<span class="action" style="color:#169BD5;cursor:pointer;" ng-click="getSchoolList(arraylist.exportId)">绑定一级指标</span>
								<span class="action" style="color:#169BD5;cursor:pointer;" ng-click="delCollect(arraylist.pid)">删除</span>								
							</div>
						</div>
					</div>
				</div>
		        <section ng-controller="pageDemo" class="col-md-7 pull-right">
		           <pagination total-items="bigTotalItems" ng-model="currentPage" max-size="maxSize" class="pagination-sm" boundary-links="true" rotate="false" num-pages="numPages" items_per_page="itemsPerPage" callback="pageChanged()" previous-text="上一页" next-text="下一页" first-text="首页" last-text="尾页"></pagination>
		        </section>
		    </section>
		</aside>
	</div>
	<div authfooter></div>
</body>
</html>
